﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FazaDemo.PL.AbstractPresenters;
using FazaDemo.PL.EventFactories;

namespace FazaDemo.PL.Wpf.Browser
{
    public class EventFactoryProvider
    {

        private readonly BasePresenter _presenter;

        public EventFactoryProvider(BasePresenter presenter)
        {
            _presenter = presenter;
        }

        public EventFactory GetEventFactory(PresenterType presType)
        {
            if (presType.Name == "WorkArea")
                return new WorkAreaEventFactory(_presenter);
            return null;
        }

    }
}
